package com.neighbor.neighborhooduser.service.impl;

import com.neighbor.neighborhooduser.pojo.UserFriends;
import com.neighbor.neighborhooduser.dao.IUserFriendsDao;
import com.neighbor.neighborhooduser.service.IUserFriendsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户好友关系表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Service
public class UserFriendsServiceImpl extends ServiceImpl<IUserFriendsDao, UserFriends> implements IUserFriendsService {
    @Autowired
    private IUserFriendsDao userFriendsDao;
    @Override
    public Integer isFollow(Integer user_id, Integer friend_id) {
        return userFriendsDao.isFollow(user_id,friend_id);
    }

    @Override
    public Integer follow(Integer user_id, Integer friend_id) {
        return userFriendsDao.follow(user_id, friend_id);
    }

    @Override
    public Integer unFollow(Integer user_id, Integer friend_id) {
        return userFriendsDao.unFollow(user_id, friend_id);
    }
}
